From: Florian Müllner Date: Thu, 25 Oct 2012 20:29:04 +0000 (+0200) Subject: messageTray: Hide summary notification immediately when closing the tray X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5540 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=81eeef7d3c533ac637c4dcd542f7cfe8f99e36ba;p=gnome-shell.git messageTray: Hide summary notification immediately when closing the tray When the summary notification is open when the tray is closed, we end up with two concurrent animations: the notification fading out, and the tray moving away from underneath it. Sliding out the tray should be the primary transition here, so hide the notification immediately to not draw the user's attention away from it. https://bugzilla.gnome.org/show_bug.cgi?id=686888 --- diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 89cbf94d0..20358e1d0 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -2125,6 +2125,10 @@ const MessageTray = new Lang.Class({ }, _hideTray: function() { + // Having the summary item animate out while sliding down the tray + // is distracting, so hide it immediately in case it was visible. + this._summaryBoxPointer.actor.hide(); + this._tween(this.actor, '_trayState', State.HIDDEN, { y: 0, time: ANIMATION_TIME,